<ion-view cache-view="false">
  <ion-header-bar class="bar bar-header header">
    <button on-touch="goback()" class="button return-btn">返回</button>
    <h1 class="title" ng-click="backToTop()">我要发布</h1>
    <button class="button hd-red-btn" on-touch="releaseHome()">发送</button>
  </ion-header-bar>
  <ion-content class="gray-bg" has-bouncing="true">
    <div class="dimple-release-warp">
      <label>
        <textarea class="dimple-release-textarea" ng-model="home.message" placeholder="晒晒您的美酒生活..."></textarea>
      </label>
    </div>

    <div class="dimple-release-photo-list">
      <div ng-if="showImageUrlList.length>0">
        <div class="dimple-release-photo-item" ng-repeat="picPath in showImageUrlList">
          <button class="dimple-release-photo-del-btn" ng-click="removePicture($index)" type="button"></button>
          <a class="dimple-release-photo-li-pic">
            <img ng-src="{{picPath}}" onload="handleImg(100,100)" class="change_img" alt="" ng-click="showBigImage($index)"/>
          </a>
        </div>
      </div>
      <div class="dimple-release-photo-item" ng-if="showImageUrlList.length<9">
        <a ng-click="addHomePic()" class="dimple-release-photo-add-btn">
          <i class="dimple-release-photo-add-icon"></i>
        </a>
      </div>
    </div>

    <div class="padding">
      <button class="button button-small dimple-addr-btn" ng-click="getLocation()"><i class="dimple-addr-icon"></i>{{locationAddr}}</button>
    </div>
  </ion-content>
</ion-view>
